<?php
 
function rowHover( $index, $bgcolor1, $bgcolor2, $onmouseover ) {
    if ( $index%2 == 0 ) {
        $ret = "bgcolor=\"{$bgcolor1}\" onmouseover=\"this.style.backgroundColor='{$onmouseover}'\" onmouseout=\"this.style.backgroundColor=''\"";
    }
    else {
        $ret = "bgcolor=\"{$bgcolor2}\" onmouseover=\"this.style.backgroundColor='{$onmouseover}'\" onmouseout=\"this.style.backgroundColor=''\"";
    }
    return $ret;
}
